On the Uncontended Complexity of Consensus

نویسندگان

  • Victor Luchangco
  • Mark Moir
  • Nir Shavit
چکیده

Lock-free algorithms are not required to guarantee a bound on the number of steps an operation takes under contention, so we cannot use the usual worst-case analysis to quantify them. A natural alternative is to consider the worst-case time complexity of operations executed in the more common uncontended case. Many state-of-the-art lock-free algorithms rely on compare-and-swap (CAS) or similar operations with high consensus number to allow effective interprocess coordination. Given the fundamental nature of consensus operations to interprocess coordination, and the fact that instructions such as CAS are usually significantly more costly than simple loads and stores, it seems natural to consider a complexity measure that counts the number of operations with higher consensus number. In this paper we show that, despite its natural appeal, such a measure is not useful. We do so by showing that one can devise a waitfree implementation of the universal compare-and-swap operation, with a “fast path” that requires only a constant number of loads and stores when the CAS is executed without contention, and uses a hardware CAS operation only if there is contention. Thus, at least in theory, any CASbased algorithm can be transformed into one that does not invoke any CAS operations along its uncontended “fast path”, so simply counting the number of such operations invoked in this case is meaningless.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On the Uncontended Complexity of Anonymous Consensus

Consensus is one of the central distributed abstractions. By enabling a collection of processes to agree on one of the values they propose, consensus can be used to implement any generic replicated service in a consistent and fault-tolerant way. In this paper, we study uncontended complexity of anonymous consensus algorithms, counting the number of memory locations used and the number of memory...

متن کامل

Adaptive Distributed Consensus Control for a Class of Heterogeneous and Uncertain Nonlinear Multi-Agent Systems

This paper has been devoted to the design of a distributed consensus control for a class of uncertain nonlinear multi-agent systems in the strict-feedback form. The communication between the agents has been described by a directed graph. Radial-basis function neural networks have been used for the approximation of the uncertain and heterogeneous dynamics of the followers as well as the effect o...

متن کامل

Governance and Capacity to Manage Resilience of Health Systems: Towards a New Conceptual Framework

The term resilience has dominated the discourse among health systems researchers since 2014 and the onset of the Ebola outbreak in West Africa. There is wide consensus that the global community has to help build more resilient health systems. But do we really know what resilience means, and do we all have the same vision of resilience? The present paper presents a new conceptual framework on go...

متن کامل

Obstruction-Free Step Complexity: Lock-Free DCAS as an Example

We propose obstruction-free step complexity, a new complexity measure for nonblocking algorithms. We believe that this measure provides a more pragmatic quantification of nonblocking algorithms than previous measures, providing better guidance for designers of practical nonblocking algorithms. In our opinion, the main shortcoming of existing complexity measures for nonblocking algorithms is tha...

متن کامل

Output Consensus Control of Nonlinear Non-minimum Phase Multi-agent Systems Using Output Redefinition Method

This paper concerns the problem of output consensus in nonlinear non-minimum phase systems. The main contribution of the paper is to guarantee achieving consensus in the presence of unstable zero dynamics. To achieve this goal, an output redefinition method is proposed. The new outputs of agents are functions of original outputs and internal states and defined such that the dynamics of agents a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003